home *** CD-ROM | disk | FTP | other *** search
- on InitLoupe
- global NomImage, NomRep, gDel
- set pl to NomImage & "L"
- loadpalette(pl)
- updateStage()
- end
-
- on InitEchelle
- global NomImage, NomRep, gListeMMajeur, gDel
- set pl to NomImage & "E"
- loadpalette(pl)
- set lmajpos to getPos(gListeMMajeur, NomImage)
- if lmajpos <> 0 then
- set vname to NomImage & "AP.JPG"
- set numref to getAt(gListeMMajeur, lmajpos + 3)
- set cname to "M" & NomImage & "EC" & ".RTF"
- end if
- end
-
- on InitZoom
- global NomImage, NomRep, gDel
- end
-
- on RollManitool
- global ManiList, MEnCours, gCurMaj
- set spritenum to 0
- if rollOver(11) then
- set spritenum to 11
- else
- if rollOver(12) then
- set spritenum to 12
- else
- if rollOver(13) then
- set spritenum to 13
- else
- if rollOver(14) then
- set spritenum to 14
- else
- if rollOver(15) then
- set spritenum to 15
- else
- if rollOver(16) then
- set spritenum to 16
- else
- if rollOver(17) then
- set spritenum to 17
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- if spritenum = 0 then
- cursor(-1)
- set the castNum of sprite 44 to the number of member "Roll Dummy"
- set the locH of sprite 44 to -10
- set the locV of sprite 44 to -10
- else
- if (spritenum = 13) and (the visible of sprite 13 = 0) then
- else
- if (ManiList <> []) and (MEnCours = 0) then
- if getPos(ManiList, "spr" & spritenum) > 0 then
- cursor(gCurMaj)
- set cname to getAt(ManiList, getPos(ManiList, "spr" & spritenum) - 1) & "On"
- if the castNum of sprite 48 <> the number of member cname then
- set the castNum of sprite 44 to the number of member ("Nom" & getAt(ManiList, getPos(ManiList, "spr" & spritenum) - 1))
- set the locH of sprite 44 to 495
- set the locV of sprite 44 to 12
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end
-
- on InitPicto
- global ManiList
- puppetSprite(16, 1)
- puppetSprite(17, 1)
- set the castNum of sprite 16 to 0
- set the castNum of sprite 17 to 0
- if ManiList <> [] then
- if getPos(ManiList, "spr16") > 0 then
- set namecst to getAt(ManiList, getPos(ManiList, "spr16") - 1) & "Off"
- set the castNum of sprite 16 to the number of member namecst
- set the locH of sprite 16 to getAt(ManiList, getPos(ManiList, "spr16") + 1)
- set the locV of sprite 16 to getAt(ManiList, getPos(ManiList, "spr16") + 2)
- end if
- if getPos(ManiList, "spr17") > 0 then
- set namecst to getAt(ManiList, getPos(ManiList, "spr17") - 1) & "Off"
- set the castNum of sprite 17 to the number of member namecst
- set the locH of sprite 17 to getAt(ManiList, getPos(ManiList, "spr17") + 1)
- set the locV of sprite 17 to getAt(ManiList, getPos(ManiList, "spr17") + 2)
- end if
- end if
- updateStage()
- end
-
- on wait nbsec
- startTimer()
- repeat while the timer < ((charToNum(nbsec) - 48) * 60)
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end
-
- on waitfor nbtip
- startTimer()
- repeat while the timer < nbtip
- if the mouseDown then
- exit repeat
- end if
- end repeat
- end
-
- on loadpalette name
- global g_xlib_xpal
- if (the colorDepth = 8) or (the machineType = 256) then
- duplicate(cast name of castLib "palmaj", 146)
- puppetPalette(146, 60, 1)
- updateStage()
- duplicate(cast 146, 145)
- puppetPalette(145, 60, 1)
- updateStage()
- puppetPalette(146, 60, 1)
- updateStage()
- end if
- end
-